package hotel.dice;

public enum BuildDiceFaces {
	RED(1),
	GREEN(3),
	H(1),
	COST_X2(1);
	
	public final int faces;
	
	private BuildDiceFaces(int faces) {
		this.faces = faces;
	}
	
	public static BuildDiceFaces[] getCoeffValues() {
		BuildDiceFaces[] values = values();
		int sum = 0;
		for (BuildDiceFaces f : values) {
			sum += f.faces;
		}
		BuildDiceFaces[] res = new BuildDiceFaces[sum];
		int i = 0;
		for (BuildDiceFaces f : values) {
			for (int k = 0; k < f.faces; ++k) {
				res[i] = f;
				++i;
			}
		}
		return res;
	}

}
